import { Navigate } from 'react-router-dom'

import Login from '../Components/Login/Login'
import Register from '../Components/Register/Register'
import Home from '../Components/Home/Home'
import WalletHome from '../Components/Wallet/WalletHome'
import Zhi from '../Components/Wallet/Zhi'
import Password from '../Components/Wallet/Password'
import Withdraw from '../Components/Wallet/Withdraw'
import Receipt from '../Components/Wallet/Receipt'

import My from '../Components/MyThree/My' //我的
import MyFans from '../Components/MyThree/myFans' //我的粉丝
import FollowPeople from '../Components/MyThree/followPeople' //关注的人
import MyOrder from '../Components/MyThree/myOrder' //我的订单
import LikeWorks from '../Components/MyThree/likeWorks' //点赞作品
import Qkl_msg from '../Components/MyThree/qkl_msg' //区块链信息
import FbRecord from '../Components/MyThree/fbRecord' //发布记录
import PeoEdit from '../Components/MyThree/peoEdit' //编辑资料

const router = [
    {
        path: '/login',
        element: <Login />,// 登录页面
    },
    {
        path: '/register',
        element: <Register />,// 注册页面
    },
    {
        path: '/home',
        element: <Home />,// 主页
    },
    {
        path: '/my',
        element: <My></My>, //我的
        children: [
            {
                path: 'myfans',
                element: <MyFans></MyFans> //我的粉丝
            },
            {
                path: 'followpeople',
                element: <FollowPeople></FollowPeople> //关注的人
            },
            {
                path: 'myorder',
                element: <MyOrder></MyOrder> //我的订单
            },
            {
                path: 'likeworks',
                element: <LikeWorks></LikeWorks> //点赞作品
            },
            {
                path: 'qklmsg',
                element: <Qkl_msg></Qkl_msg> //区块链信息
            },
            {
                path: 'fbrecord',
                element: <FbRecord></FbRecord> //发布记录
            },
            {
                path:'peoedit',
                element:<PeoEdit></PeoEdit> //编辑资料
            }
        ]
    },
        {
        path:'/wallet', //我的钱包
        element:<WalletHome></WalletHome>
    },
    {
        path:'/zhi',    //绑定支付宝
        element:<Zhi></Zhi>
    },
    {
        path:'/password',   //支付密码
        element:<Password></Password>
    },
    {
        path:'/withdraw',   //提现页面
        element:<Withdraw></Withdraw>
    },
    {
        path:'/receipt',   //提现回执
        element:<Receipt></Receipt>
    },
    {
        path: '/',
        element: <Navigate to="/login" />
    }
]

export default router